home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
19
/
9
/
DISK1993.ZIP
/
FILESAFE.EXE
/
INSTBAT.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-22
|
4KB
|
94 lines
Echo off
:This batch file should be located in the installation drive/directory
Cls
echo
echo ╔═══════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ F I L E - S A F E ║
echo ║ Batch File Installation ║
echo ║ ║
echo ║ This procedure will install two batch files in the root ║
echo ║ directory of your hard disk. If either of them already exists, ║
echo ║ it will terminate and not install any batch files. The two ║
echo ║ files are FIM.BAT and FI.BAT. If the procedure does terminate, ║
echo ║ you may correct the situation and re-run it by entering: ║
echo ║ ║
echo ║ INSTBAT x: name ║
echo ║ ║
echo ║ where "x" is the drive letter where the files should be ║
echo ║ installed and "name" is the name of the directory where File- ║
echo ║ Safe was installed. The current drive/directory should be ║
echo ║ the same since that is where INSTBAT.BAT is located - e.g. ║
echo ║ C:\FILESAFE ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════╝
echo
Pause
if exist HDINST2.BAT del HDINST2.BAT
if "%1"=="" goto NoParms
if EXIST %1\FIBAT goto Abort
if EXIST %1\FIM.BAT goto Abort
goto Continue
:NoParms
Cls
Echo
Echo You must enter the drive and directory
Echo where File-Safe is installed .....
Echo
Echo Use this format: INSTBAT x: Name
Echo
Echo Where "x" is the drive and "Name" is the directory
Echo You don't need a "\" in fromt of "Name"
Echo
pause
goto Quit
:Abort
Cls
Echo
Echo Batch file(s) already exist(s) on %1\
Echo In order to avoid destroying your file(s)
Echo this procedure will terminate here
Echo
Pause
goto Quit
:Continue
Echo Echo off > %1\FI.BAT
Echo Echo off > %1\FIM.BAT
Echo Cls >> %1\FI.BAT
Echo Cls >> %1\FIM.BAT
Echo %1 >> %1\fi.bat
Echo %1 >> %1\fim.bat
Echo CD \%2 >> %1\fi.bat
Echo CD \%2 >> %1\fim.bat
Echo FI %%1 >> %1\fi.bat
Echo FIM %%1 >> %1\fim.bat
Echo Cd\ >> %1\fi.bat
Echo Cd\ >> %1\fim.bat
Cls
echo
echo ╔═══════════════════════════════════════════════════════════════════╗
echo ║ F I L E - S A F E ║
echo ║ Batch File Installation ║
echo ║ ║
echo ║ The batch files FI.BAT and FIM.BAT have now been installed ║
echo ║ in your hard disk's root directory. You can now execute the ║
echo ║ File-Safe system simply by entering FIM. In addition, if you ║
echo ║ add FI to your AUTOEXEC.BAT file , File-Safe will run auto- ║
echo ║ matically every time you start up your computer. If any ║
echo ║ backups are needed, it will tell you so, and if not, it will ║
echo ║ merely return you to DOS. We also recommend that, if you do ║
echo ║ not have any path specifications in your AUTOEXEC file, you ║
echo ║ add PATH=C:\ to it. That way, batch files in your root ║
echo ║ directory will always be found. ║
echo ║ ║
echo ║ . . . . . . . . . . . . . ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════════════════╝
echo
Echo .. The current directory should be %1\%2, and it is:
CD
Pause
:Quit
Cls